#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2021/9/17 16:51
# @Author : lenovo
# @Email : 26541796406@qq.com
# @File : MRYX_SEARCH_DRIVER.py
# @Project : mryx_test
"""创建driver"""
from appium import webdriver
def search_driver():
    desired_capabilites = {
        "platformName": "Android",
        "deviceName": "5ENDU19222007479",
        "platformVersion": "10",
        "appPackage": "cn.missfresh.application",
        "appActivity": "cn.missfresh.module.main.view.SplashActivity",
        "noReset": True,
        "resetKeyboard": True
    }
    driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_capabilites)
    return driver